package com.example.badyloans.servlet;

import com.sun.xml.internal.bind.v2.TODO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.badyloans.dao.TAccountFlowMapper;
import com.example.badyloans.pojo.TAccountFlow;
import com.example.badyloans.servlet.TAccountFlowService;

import java.util.List;

@Service
public class TAccountFlowServiceImpl implements TAccountFlowService{

    @Resource
    private TAccountFlowMapper tAccountFlowMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {

        return tAccountFlowMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(TAccountFlow record) {
        return tAccountFlowMapper.insertSelective(record);
    }

    @Override
    public int count() {
        return tAccountFlowMapper.count();
    }

    @Override
    public TAccountFlow selectByPrimaryKey(Long id) {
        return tAccountFlowMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TAccountFlow> selectfenye(Integer currentPageNo, Integer pageSize,String beginDate,String endDate) {
        return tAccountFlowMapper.selectfenye(currentPageNo,pageSize,beginDate,endDate);
    }

    @Override
    public int updateByPrimaryKeySelective(TAccountFlow record) {
        return tAccountFlowMapper.updateByPrimaryKeySelective(record);
    }

}
